import type { IPageContentConfig } from '@/global/types'

const menuContentConfig: IPageContentConfig = {
  pageName: 'menu',
  layout: {
    border: false,
    size: 'default',
    stripe: false
  },
  items: [
    {
      prop: 'menuLabel',
      label: '菜单名称',
      minWidth: '160',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'custom',
      slotName: 'icon',
      label: '图标',
      minWidth: '100',
      showOverflowTooltip: true
    },
    {
      prop: 'type',
      label: '排序',
      minWidth: '100',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'menuCode',
      label: '权限标识',
      minWidth: '180',
      showOverflowTooltip: true
    },
    {
      prop: 'name',
      label: '路由名字',
      minWidth: '170',
      showOverflowTooltip: true
    },
    {
      prop: 'path',
      label: '路由path',
      minWidth: '200',
      showOverflowTooltip: true
    },
    {
      prop: 'url',
      label: '组件路径',
      minWidth: '200',
      showOverflowTooltip: true
    },
    {
      prop: 'createBy',
      label: '创建人',
      minWidth: '120',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'createTime',
      label: '创建时间',
      minWidth: '180',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'operation',
      label: '行为',
      minWidth: '120',
      align: 'center',
      // fixed: 'right',
      btns: [
        { type: 'edit', label: '编辑' },
        { type: 'delete', label: '删除' }
      ]
    }
  ]
}

export default menuContentConfig
